package com.youkeyi.ddy.cloud.common.api.basic.pub.menu;

import com.youkeyi.ddy.cloud.common.api.basic.pub.menu.dto.PublicMenuListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.menu.param.PublicMenuCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.menu.param.PublicMenuDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.menu.param.PublicMenuQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.menu.param.PublicMenuUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicMenuCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/21 3:49 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/public/menu/fallback")
public class PublicMenuCloudServiceFallback implements PublicMenuCloudService {

    @Override
    public PublicMenuListCloudDto query(PublicMenuQueryCloudParam param) {
        return new PublicMenuListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(PublicMenuCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(PublicMenuUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(PublicMenuDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
